package org.ucas.faker.web.dto;

import java.util.ArrayList;
import java.util.List;

import org.ucas.faker.web.utils.model.RawPatent;

public class PatentDto {

  public int id;

  public int state;
  
  public int score;
  
  public RawPatent patent;
  
  PatentDto(RawPatent p, int id, int state, int score){
	  
	  this.id = id;
	  this.state = state;
	  this.patent = p;
	  this.score = score;
  }

public static List<PatentDto> of(List<RawPatent> patents, int score, int from) {
	List<PatentDto> list = new ArrayList<>();
	for(int i=0;i<patents.size();i++){
		PatentDto p = new PatentDto(patents.get(i),i+from,0,score);
		list.add(p);
	}
	return list;
}
  
}
